/**
 * 作者：陈文斌 on 2019/1/18.
 * 邮箱：chen_wennbin@163.com
 * 版本：v1.0
 */

import 'package:json_annotation/json_annotation.dart';
import 'package:crm/model/Company/company_info_model.dart';
import 'package:crm/model/Employee/employee_model.dart';
import 'package:crm/model/Customer/customer_group_model.dart';

part 'customer_model.g.dart';

@JsonSerializable()
class CustomerModel extends Object with _$CustomerModelSerializerMixin {
  String Id;
  String CompanyId;
  CompanyInfoModel Company;
  String EmployeeId;
  EmployeeModel Employee;
  String AddById;
  EmployeeModel AddBy;
  String AddTime;
  String GroupId;
  CustomerGroupModel Group;

  CustomerModel(
    this.Id,
    this.CompanyId,
    this.Company,
    this.EmployeeId,
    this.Employee,
    this.AddById,
    this.AddBy,
    this.AddTime,
    this.GroupId,
    this.Group,
  );

  @override
  factory CustomerModel.fromJson(Map<String, dynamic> json) => _$CustomerModelFromJson(json);
}
